home *** CD-ROM | disk | FTP | other *** search
- property done, result
-
- on new me
- return me
- end
-
- on beginSprite me
- done = 1
- end
-
- on mouseUp me
- mySubject = sprite(me.spriteNum).myURL
- myOS = baVersion("mac")
- myQT = baVersion("qt")
- myPlatform = the platform
- myMachine = the machineType
- myFreebytes = the freeBytes
- myBrowser = browserName()
- myColorDepth = the colorDepth
- myDesktopRect = the deskTopRectList
- myDate = the short date
- myDate = replaceChars(myDate, "/", "\")
- myIssue = "December99"
- myInfo = mySubject & "|" & myOS & "|" & myQT & "|" & myPlatform & "|" & myMachine & "|" & myFreebytes & "|" & myColorDepth & "|" & myDesktopRect & "|" & myBrowser
- newCGI = "http://www.avantdigital.com/misspiggy/macworld/info.cgi?mySUBJECT=" & mySubject & "&myOS=" & myOS & "&myQT=" & myQT & "&myPLATFORM=" & myPlatform & "&myMACHINE=" & myMachine & "&myFREEBYTES=" & myFreebytes & "&myCOLORDEPTH=" & myColorDepth & "&myDESKTOPRECT=" & myDesktopRect & "&myBROWSER=" & myBrowser & "&myDATE=" & myDate & "&myISSUE=" & myIssue
- newCGI = deleteSpaces(newCGI)
- result = getNetText(newCGI)
- done = 0
- end
-
- on deleteSpaces s
- more = 1
- X = offset(" ", s)
- repeat while X > 0
- delete char X of s
- X = offset(" ", s)
- end repeat
- return s
- end
-
- on replaceSpaces s, c
- more = 1
- X = offset(" ", s)
- repeat while X > 0
- if not voidp(c) then
- put c after char X of s
- end if
- delete char X of s
- X = offset(" ", s)
- end repeat
- return s
- end
-
- on exitFrame me
- if done = 0 then
- if netDone(result) then
- case netError(result) of
- "OK":
- if the runMode = "author" then
- alert("Yo dude")
- end if
- done = 1
- "4159":
- if the runMode = "author" then
- alert("The URL is invalid.")
- end if
- done = 1
- "4165":
- if the runMode = "author" then
- alert("The URL was not found.")
- end if
- done = 1
- end case
- end if
- end if
- end
-
- on replaceChars s, origChar, c
- X = offset(origChar, s)
- repeat while X > 0
- if not voidp(c) then
- put c after char X of s
- end if
- delete char X of s
- X = offset(origChar, s)
- end repeat
- return s
- end
-
- on replaceString s, origString, newString
- X = offset(origString, s)
- repeat while X > 0
- if not voidp(newString) then
- put newString after char X + length(origString) - 1 of s
- end if
- delete char X to X + length(origString) - 1 of s
- X = offset(origString, s)
- end repeat
- return s
- end
-